UtilsLibraries

Overview

Additional external third party libraries that are provided as utilities in the Pyramid Api.

  • From version: 2020.20

Properties

fetch

fetch: object

The Fetch API provides an interface for fetching resources (including across the network). It will seem familiar to anyone who has used XMLHttpRequest, but the new API provides a more powerful and flexible feature set.

lodash

lodash: object

A modern JavaScript utility library delivering modularity, performance and extras. For more information: https://lodash.com/

const lodash = cvApi2.externalLibraries.utils.lodash;

moment

moment: object

A date library for parsing, validating, manipulating, and formatting dates. For more information: https://www.npmjs.com/package/moment

const moment = cvApi2.externalLibraries.utils.moment;

numeral

numeral: object

A javascript library for formatting and manipulating numbers. For more information: https://www.npmjs.com/package/numeral

const numeral = cvApi2.externalLibraries.utils.numeral;

tinycolor

tinycolor: object

TinyColor is a library for color manipulation and conversion. It allows mobject forms of input, while providing color conversions and other color utility functions. For more information: https://www.npmjs.com/package/tinycolor2

const tinycolor = cvApi2.externalLibraries.utils.tinycolor;
const rgbString = tinycolor(newColor.rgb).toRgbString();

uuid

uuid: object

create a random UUID For more information: https://www.npmjs.com/package/uuid

const newUuid = cvApi2.externalLibraries.utils.uuid();